import http from './http'
import server from 'config/server'

export default {
  /**
   * 获取告警记录
   */
  getAlerts (params) {
    return http.post(
      `${server.host}/v2/corp/messages`, JSON.stringify(params)
    )
  },
  readAlerts (ids) {
    return http.post(
      `${server.host}/v2/corp/message_read`, JSON.stringify(ids)
    )
  }
}
